<?php
/**
 * Created by xiaosong
 * E-mail:4155433@gmail.com
 * Date: 2019/9/19
 * Time: 13:40
 */

namespace App\Common;


class Common
{
    public static function create($data = null){
        if ($data == null){
            return null;
        }
        dd($data);
        $instance = new static;
        foreach ($data as $key => $value){
            $instance[$key] = $value;
        }
        return $instance;
    }
}